<template>
    <div>
        
        <el-table :data="res" style="width: 100%">
      <el-table-column prop="student_id" label="学生id" width="100">
      </el-table-column>
      <el-table-column prop="class_id" label="班级id" width="150">
      </el-table-column>

      <el-table-column prop="student_name" label="姓名" width="100">
      </el-table-column>
      <el-table-column prop="student_phone" label="电话" width="100">
      </el-table-column>
      <el-table-column prop="student_password" label="密码" width="100">
      </el-table-column>
    
     
    </el-table>
    </div>
</template>
<script>
export default {
   data() {
      return {
          res:[],
      }
   },
   created(){
   },
   computed:{
   },
   methods:{
   },
   mounted() {
    this.$axios
      .get("http://10.197.26.58:8080/getstudentList")
      .then((response) => {
        this.res = response.data.body;
        console.log(this.res);
      });
  },
}
</script>
<style  scoped>

</style>

